package com.jason.platform.supervision.beans;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * 定位模块的所用到的bean
 *
 * @author zhaoguo
 */
public class LocateBean implements Serializable {
    private Integer positionId;// 主键id
    private String electronicsId;// 人员Id号
    private String longitude;// 定位经度
    private String latitude;// 定位纬度
    private String positionInfo;// 位置信息
    private String state;// 返回状态（0:失败,1:正常,2:越界,3:用户关机）
    private String remark;// 备注
    private String overstepDeal;// 越界是否处理(0:否,1:是)
    private String backtime;// 允许越界时间
    private String userName;// 处理工作人员姓名

    private String electronicsName;// 矫正人员姓名
    private String sex;// 性别
    private String status;// 人员状态(在册/解矫)
    private String criminal;// 罪名

    private String orgId;// 机构代码
    private String organName;// 机构名称

    private String borderId;// 边界Id
    private String bordername;// 边界名称
    private String bordertype;// 边界类型(0:组件生成，1:用户自定义)
    private String qryStartTime;// 查询开始时间
    private String qryEndTime;// 查询结束时间

    private String telephone;
    private String positionTime; // 定位记录时间
    private String tableName; // 记录 表名
    private String boundary;// 边界 点 格式 longitude,latitude;

    private String locateType;// 定位方式(0:腕表定位F,1:腕表基站定位L,2:LBS定位)

    private String ti;// 定位间隔

    private String imie;

    private String power;// 腕表电压(0:低电压,1:正常电压,2:未知电压)
    private String powershouji;// 手机电量：百分比
    private String renjistatus;// 人机状态：0:手机腕表分离,1:正常,2:腕表已拆卸
    private String canoverspace;// 可越界距离
    private String locateModel;// 定位模式：1:GPS,2:LBS,3:混合

    public String getPowershouji() {
        return powershouji;
    }

    public void setPowershouji(String powershouji) {
        this.powershouji = powershouji;
    }

    public String getRenjistatus() {
        return renjistatus;
    }

    public void setRenjistatus(String renjistatus) {
        this.renjistatus = renjistatus;
    }

    public String getTi() {
        return ti;
    }

    public void setTi(String ti) {
        this.ti = ti;
    }

    public String getImie() {
        return imie;
    }

    public void setImie(String imie) {
        this.imie = imie;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getBoundary() {
        return boundary;
    }

    public void setBoundary(String boundary) {
        this.boundary = boundary;
    }

    public String getQryStartTime() {
        return qryStartTime;
    }

    public void setQryStartTime(String qryStartTime) {
        this.qryStartTime = qryStartTime;
    }

    public String getQryEndTime() {
        return qryEndTime;
    }

    public void setQryEndTime(String qryEndTime) {
        this.qryEndTime = qryEndTime;
    }

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public String getElectronicsId() {
        return electronicsId;
    }

    public void setElectronicsId(String electronicsId) {
        this.electronicsId = electronicsId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getElectronicsName() {
        return electronicsName;
    }

    public void setElectronicsName(String electronicsName) {
        this.electronicsName = electronicsName;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getPositionInfo() {
        return positionInfo;
    }

    public void setPositionInfo(String positionInfo) {
        this.positionInfo = positionInfo;
    }

    public String getRemark() {
        return remark;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOverstepDeal() {
        return overstepDeal;
    }

    public void setOverstepDeal(String overstepDeal) {
        this.overstepDeal = overstepDeal;
    }

    public String getBacktime() {
        return backtime;
    }

    public void setBacktime(String backtime) {
        this.backtime = backtime;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCriminal() {
        return criminal;
    }

    public void setCriminal(String criminal) {
        this.criminal = criminal;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getBordername() {
        return bordername;
    }

    public void setBordername(String bordername) {
        this.bordername = bordername;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getBordertype() {
        return bordertype;
    }

    public void setBordertype(String bordertype) {
        this.bordertype = bordertype;
    }

    public String getStatus() {
        return status;
    }

    public String getState() {
        return state;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPositionTime() {
        return positionTime;
    }

    public void setPositionTime(String positionTime) {
        this.positionTime = positionTime;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getBorderId() {
        return borderId;
    }

    public void setBorderId(String borderId) {
        this.borderId = borderId;
    }

    public String getLocateType() {
        return locateType;
    }

    public void setLocateType(String locateType) {
        this.locateType = locateType;
    }

    public void setCanoverspace(String canoverspace) {
        this.canoverspace = canoverspace;
    }

    public String getCanoverspace() {
        return canoverspace;
    }

    public void setLocateModel(String locateModel) {
        this.locateModel = locateModel;
    }

    public String getLocateModel() {
        return locateModel;
    }

    public boolean isOpenMap(){
        return  !(TextUtils.isEmpty(latitude) || TextUtils.isEmpty(longitude)) && !("-1".equals(latitude) || "-1".equals(longitude));
    }

    @Override
    public String toString() {
        return "LocateBean{" +
                "positionId=" + positionId +
                ", electronicsId='" + electronicsId + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", positionInfo='" + positionInfo + '\'' +
                ", state='" + state + '\'' +
                ", remark='" + remark + '\'' +
                ", overstepDeal='" + overstepDeal + '\'' +
                ", backtime='" + backtime + '\'' +
                ", userName='" + userName + '\'' +
                ", electronicsName='" + electronicsName + '\'' +
                ", sex='" + sex + '\'' +
                ", status='" + status + '\'' +
                ", criminal='" + criminal + '\'' +
                ", orgId='" + orgId + '\'' +
                ", organName='" + organName + '\'' +
                ", borderId='" + borderId + '\'' +
                ", bordername='" + bordername + '\'' +
                ", bordertype='" + bordertype + '\'' +
                ", qryStartTime='" + qryStartTime + '\'' +
                ", qryEndTime='" + qryEndTime + '\'' +
                ", telephone='" + telephone + '\'' +
                ", positionTime='" + positionTime + '\'' +
                ", tableName='" + tableName + '\'' +
                ", boundary='" + boundary + '\'' +
                ", locateType='" + locateType + '\'' +
                ", ti='" + ti + '\'' +
                ", imie='" + imie + '\'' +
                ", power='" + power + '\'' +
                ", powershouji='" + powershouji + '\'' +
                ", renjistatus='" + renjistatus + '\'' +
                ", canoverspace='" + canoverspace + '\'' +
                ", locateModel='" + locateModel + '\'' +
                '}';
    }
}
